package priv.yiyuan.example.design.bridge;

/**
 * Stripe网关
 * <p>
 * 实现部分具体类
 *
 * @author YiYuan
 * @data 2025/8/5
 * @apoNote
 */
public class StripeGateway implements PaymentGateway {

    @Override
    public boolean processPayment(double amount, String merchantAccount, String customerAccount) {
        System.out.println(String.format("通过Stripe处理支付: %.2f从%s到%s\n", amount, customerAccount, merchantAccount));
        return true;
    }

    @Override
    public boolean refund(double amount, String merchantAccount, String customerAccount) {
        System.out.println(String.format("通过Stripe处理退款: %.2f从%s到%s\n", amount, merchantAccount, customerAccount));
        return true;
    }
}
